<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head th:replace="topbar::static">
</head>

<body>
<!--引用公用的导航栏-->
<nav th:replace="topbar::topbar"></nav>
<div class="container-fluid">
    <div class="row">
        <div th:replace="topbar::sidebar(activeUri='nodeInfo.html')"></div>
        <div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
            <h1 class="page-header">5GC MANO</h1>
            <h2 class="sub-header">K8S Node信息展示</h2>
            <div class="table-responsive">
                <table class="table table-striped">
                    <thead>
                    <tr>
                        <th>id</th>
                        <th>nodeName</th>
                        <th>nodeIp</th>
                        <th>totalCpu</th>
                        <th>totalMemory</th>
                        <th>usedCpu</th>
                        <th>usedMemory</th>
                        <th>memoryPressure</th>
                        <th>diskPressure</th>
                        <th>cpuPressure</th>
                        <th>ready</th>
                        <th>position</th>
                    </tr>
                    </thead>
                    <tbody>
                    <tr th:each="nodeInfo:${nodeInfos}">
                        <td th:text="${nodeInfo.id}"></td>
                        <td th:text="${nodeInfo.nodeName}"></td>
                        <td th:text="${nodeInfo.nodeIp}"></td>
                        <td th:text="${nodeInfo.totalCpu}"></td>
                        <td th:text="${nodeInfo.totalMemory}"></td>
                        <td th:text="${nodeInfo.usedCpu}"></td>
                        <td th:text="${nodeInfo.usedMemory}"></td>
                        <td th:text="${nodeInfo.memoryPressure}"></td>
                        <td th:text="${nodeInfo.diskPressure}"></td>
                        <td th:text="${nodeInfo.cpuPressure}"></td>
                        <td th:text="${nodeInfo.ready}"></td>
                        <td th:text="${nodeInfo.position}"></td>
                    </tr>
                    </tbody>
                </table>
            </div>
        </div>
    </div>
</div>
</body>
</html>
